from django.urls import path, re_path, include

# 定义自己的 URL
from domainManager import views
#app_name = 'domainManager'

urlpatterns = [
    # path('', views.index, name='index'),
    # 第二个参数叫 name，是为了给当前 path 起名字，用于反向解析

    path('index/', views.index, name='index'),  # path 不识别正则

    path('domainList/', views.domainList, name='domainList'),
    path('admin/', views.admin, name='admin'),
    path('get_domainDateList/', views.get_domainDateList, name='get_domainDateList'),
    path('uploadDomain/', views.uploadDomain, name='uploadDomain'),

    path('domainUrlList/', views.domainUrlList, name='domainUrlList'),
    path('get_domainUrlList/', views.get_domainUrlList, name='get_domainUrlList'),



    # path('myExp/', views.myExp, name='myExp'),

    # re_path(r'(\d+)', views.detail, name='detail'),  # 正则需要用 re_path
    # re_path(r'^(?P<id>[0-9]+)/$', views.detail, name='detail'),   # 正则命名组
    # path('', views.home, name='home'),
]
